package com.itheima.service.impl;

import com.itheima.dao.BookDao;
import com.itheima.service.BookService;

public class BookServiceImpl implements BookService {
//    private BookDao bookDao = new BookDaoImpl();
    //这里service需要的dao对象不应该保留
    private BookDao bookDao;
    public void setBookDao(BookDao bookDao){
        this.bookDao=bookDao;
    }
    public void save() {
        System.out.println("book service save");
        bookDao.save();
    }
}
